<?php

require_once "core/application/controllers/MainController.php";

class switchAccessLevel extends Main_Controller {

    private static $_instance = NULL;
    public $_access_level        = 0;

    public static function getInstance() {
        if (is_null(self::$_instance)) {
            $class = __CLASS__;
            self::$_instance = new $class();
        }
        return self::$_instance;
    }

    public function getAccessLevel($param) {
        /**
         * @param int $param
         * @return string $this->_accessLevel
         */
        switch ($param) {
            case 5: $this->_accessLevel = "Главный администратор";
                break;
            case 4: $this->_accessLevel = "Игровой администратор";
                break;
            case 3: $this->_accessLevel = "Главный ГМ";
                break;
            case 2: $this->_accessLevel = "ГМ/ЭМ";
                break;
            case 1: $this->_accessLevel = "Помощник";
                break;
            case 0: $this->_accessLevel = "Игрок";
                break;
            default: $this->_accessLevel = "Не определено";
        }
        return $this->_accessLevel;
    }

}

?>